﻿#ifndef __AVOID_HEAD_CONTROL_SELECTOWDBOX_HEA_DFILE_COIDNELDNLSDN__
#define __AVOID_HEAD_CONTROL_SELECTOWDBOX_HEA_DFILE_COIDNELDNLSDN__
#include "interface/IFont.h"
#include "interface/ISmoothTransform.h"

namespace swui
{
#pragma warning(push)
#pragma warning(disable:4250)
	class ctlSelectableBox : virtual public ctlRoot, 
		public IFont, public ISmoothTransform
	{
	public:
		const static unsigned BoxWidth = 15, TextOffset = 3;
	public:
		virtual ~ctlSelectableBox() { destroy(); }
	public:
		bool isSelected();
	public:
		virtual bool setText(const ctlText& lpszText);
	protected:
		ctlRect _getBoxRect();
		void _flush_rect_();
		virtual void _flush_font_();
		bool _selected;
	};
#pragma warning(pop)
}


#endif